from django.urls import path

from macro_indicator.views import MacroIndicatorViewSet

urlpatterns = [
    path(r'GDP', MacroIndicatorViewSet.as_view({'get': 'get_GDP'}), name='getGDP'),
    path(r'CPI', MacroIndicatorViewSet.as_view({'get': 'get_CPI'}), name='getCPI'),
    path(r'PPI', MacroIndicatorViewSet.as_view({'get': 'get_PPI'}), name='getPPI'),
    path(r'export', MacroIndicatorViewSet.as_view({'post': 'export_to_excel'}), name='export_to_excel'),
    path(r'predict', MacroIndicatorViewSet.as_view({'post': 'predict'}), name='predict')
]